﻿namespace mmSubProvider
{
    public class SubUtils
    {
        public static string GetMovieUrl(string aId, int aSeason)
        {
            return string.Format("http://tvsubtitles.net/tvshow-{0}-{1}.html", aId, aSeason);
        }

        public static string GetSubtitleUrl(string aSubId)
        {
            return string.Format("http://tvsubtitles.net/download-{0}.html", aSubId);
        }

        public static string MovieSearchUrl
        {
            get { return "http://www.tvsubtitles.net/search.php"; }
        }

        static public string AddZero(int value)
        {
            return value >= 10 ? value.ToString() : string.Format("0{0}", value);
        }
    }
}
